GtkSwitch: Initialize offset when beginning animation
authorMatthias Clasen <mclasen@redhat.com>
Mon, 4 Aug 2014 12:35:15 +0000 (14:35 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 4 Aug 2014 12:36:42 +0000 (14:36 +0200)
commit5131472984761484c71510d8c588414fa814cc60
treed4682059de4b80c510c88afb5e5b4a074b4d1a77
parent1569952d0e97448edffdf60266272ff4a4a08bd8
GtkSwitch: Initialize offset when beginning animation

handle_x always corresponds to the visible position of the handle,
which is where we want to start the animation. Without this, repeated
keyboard activation will not always animate.
gtk/gtkswitch.c